prefix=/usr

all:

clean:
	find . -name *.pyc | xargs rm -f

install:
	install -d -m 0755 "$(DESTDIR)/$(prefix)/bin"
	install -m 0755 bin/* "$(DESTDIR)/$(prefix)/bin"

	install -d -m 0755 "$(DESTDIR)/$(prefix)/share/mrget"
	install -m 0644 share/mrget/* "$(DESTDIR)/$(prefix)/share/mrget"

	install -d -m 0755 "$(DESTDIR)/$(prefix)/share/doc/mrget"
	install -m 0644 doc/* "$(DESTDIR)/$(prefix)/share/doc/mrget"

.PHONY: all clean install
